using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Acms.WebControls
{
    [ToolboxData("<{0}:Hyperlink runat=server></{0}:Hyperlink>")]
    public class Hyperlink : System.Web.UI.WebControls.HyperLink
    {
        protected override void OnPreRender(EventArgs e)
        {
            if (!string.IsNullOrEmpty(this.NavigateUrl))
            {
                base.NavigateUrl = Page.ResolveUrl(this.NavigateUrl);
            }
            if (!string.IsNullOrEmpty(this.ImageUrl))
            {
                base.ImageUrl = Page.ResolveUrl(this.ImageUrl);
            }
            base.OnPreRender(e);
        }
    }
}
